package java19_1_8.interface_test;

/**
 * @author yuisama
 * @date 2022/01/08 11:11
 **/
public class MessageImpl implements IMessage,INews{
    @Override
    public String msg() {
        return "hello bit";
    }
    @Override
    public void getNews() {
        System.out.println("hello news~");
    }
    public static void main(String[] args) {
        IMessage message = new MessageImpl();
        System.out.println(message.msg());
        INews news = (INews) message;
        news.getNews();
    }
}